package com.reform.mapper;

import com.reform.pojo.project.NumProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mortale
 * @since 2021-08-06
 */
@Mapper
public interface NumProjectMapper extends BaseMapper<NumProject> {

    @Select(
            "SELECT\n" +
                    "	batch_id\n" +
                    "FROM\n" +
                    "	num_project\n" +
                    "	WHERE dep_id = #{depId}"
    )
    List<String> getBatchIdByDepId(@Param("depId") Integer depId);
}
